// components/showModal/showModal.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    showModal: {
      type: Boolean,
      value: true
    },
    cancleBtn: {
      type: Boolean,
      value: true
    },
    title: {
      type: String,
      value: '提示'
    },
    modalMsg: {
      type: String,
      value: '可以多次报名!报名完成后,请点左下角转发按钮发群!'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    showCancelOrder: function () {
      this.setData({
        showModal: true
      })
    },
    modal_click_Hidden: function () {
      this.setData({
        showModal: false,
      })
    },
    // 确定
    Sure: function () {
      this.triggerEvent('sure',{},{})
      this.setData({
        showModal: false,
      })
    },
  },
  lifetimes: {
    created() {
      // console.log('组件被创建出来时');
    },
    attached() {
      // console.log(this.properties.cancleBtn,this.properties.title);
     
    },
  }
})